import logging

from os import environ, path

from lakesuperior import env as lsenv

logger = logging.getLogger(__name__)

basedir = path.dirname(path.realpath(__file__))

# Configure lsup with local directory.
lsup_config_dir = environ.get(
        'LSUP_CONFIG_DIR', path.join(basedir, 'config', 'lsup'))
lsenv.setup(lsup_config_dir)
